import { DEFAULT_LAYOUT } from '../base';

export default {
  path: '/record',
  name: 'Record',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '我的答题',
    requiresAuth: true,
    icon: 'icon-file',
    order: 4
  },
  children: [
    {
      path: 'list',
      name: 'RecordList',
      component: () => import('@/views/record/index.vue'),
      meta: {
        locale: '记录列表',
        requiresAuth: true,
        roles: ['*']
      }
    },
    {
      path: 'report/:id',
      name: 'ReportDetail',
      component: () => import('@/views/report/index.vue'),
      meta: {
        locale: 'AI分析报告',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
        hideChildrenInMenu: true,
        activeMenu: 'record'
      }
    }
  ]
};
